<!DOCTYPE html>
<html>
    <head>
        <title>对象  </title>
		<meta charset="utf-8" />
    </head>
    <body>

    </body>
    <script>
        var dog = {
            dogName: "lily",
            weight: "20kg",
            color: "black",
            age:2,
            jump: function(){
                if(this.age >= 2){
                    console.log(this.dogName + "can jump");
                }
            }
        }
        /**
         * 定义一个对象cat
        */
        var cat = {
            catName:"lisa",
            pinzhong:"雪纳瑞",
            weight:"15kg",
            shout:function(){
                console.log(this.catName + "喵喵喵");
            }
        }
    </script>
</html>